﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;

namespace OnlineDovizOtomasyonu
{
    public partial class ayrintiverecek : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void AyrintiMenu_ItemClick(object source, DevExpress.Web.ASPxMenu.MenuItemEventArgs e)
        {
            if (e.Item.Name == "M2")
            {
                listeexport.FileName = DateTime.Now.Day + "_" + DateTime.Now.Month + "_" + DateTime.Now.Year + "_Verecek_Ayrinti_Raporu";
                listeexport.WriteXlsToResponse();
            }
            if (e.Item.Name == "M3")
            {
                listeexport.FileName = DateTime.Now.Day + "_" + DateTime.Now.Month + "_" + DateTime.Now.Year + "_Verecek_Ayrinti_Raporu";
                listeexport.WritePdfToResponse();
            }
            if (e.Item.Name == "M5")
            {
                Session.Abandon();
                Response.Redirect("sistem.aspx");
            }
        }

    }
}